﻿@model ThaireInvestmentWeb.Models.AddFixedIncomePurchaseModel
@{
    Layout = null;
}
<table class="tableform" width="100%" border="0" align="center" cellspacing="2">
    <tr>
        <td width="212">
            <div align="right">ประเภทธุรกรรม: </div>
        </td>
        <td width="8">&nbsp;</td>
        <td width="246">
            @Html.TextBoxFor(x => x.Purchase.TransactionType, new { disabled = "disabled", @readonly = "readonly" })

        </td>
        <td width="188" align="right">&nbsp;</td>
        <td width="6">&nbsp;</td>
        <td width="208">&nbsp;</td>
    </tr>
    <tr>
        <td>
            <div align="right">Trade Date <span class="error">*</span> : </div>
        </td>
        <td>&nbsp;</td>
        <td>
            @Html.TextBoxFor(model => model.Purchase.TradeDate, new { disabled = "disabled", @readonly = "readonly", @Value = string.Format("{0:dd/MM/yyyy}", Model.Purchase.TradeDate) })


        </td>
        <td>
            <div align="right">Settlement Date <span class="error">*</span> : </div>
        </td>
        <td>&nbsp;</td>
        <td>

            @Html.TextBoxFor(x => x.Purchase.SettlementDate, new { disabled = "disabled", @readonly = "readonly", @Value = string.Format("{0:dd/MM/yyyy}", Model.Purchase.SettlementDate) })
        </td>
    </tr>
    <tr>
        <td>
            <div align="right">Ref. No. <span class="error">*</span> : </div>
        </td>
        <td>&nbsp;</td>
        <td>
            @Html.TextBoxFor(model => model.Purchase.RefNo, new { disabled = "disabled", @readonly = "readonly" })


        </td>
        <td>
            <div align="right">Type of Payment <span class="error">*</span> : </div>
        </td>
        <td>&nbsp;</td>
        <td>

            @Html.TextBoxFor(x => x.Purchase.TypeofpaymentName, new { disabled = "disabled", @readonly = "readonly" })
        </td>
    </tr>
    <tr>
        <td>
            <div align="right">Time to Maturity Date  : </div>
        </td>
        <td>&nbsp;</td>
        <td>
            @Html.TextBoxFor(model => model.Purchase.TIME2MATURE, new { disabled = "disabled", @readonly = "readonly" })
        </td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
    </tr>
    <tr>
        <td>
            <div align="right">Trade Date <span class="error">*</span>  : </div>
        </td>
        <td>&nbsp;</td>
        <td>
            @Html.TextBoxFor(model => model.Purchase.TradeDate, new { disabled = "disabled", @readonly = "readonly", @Value = string.Format("{0:dd/MM/yyyy}", Model.Purchase.TradeDate) })

        </td>
        <td>
            <div align="right">Settlement Date <span class="error">*</span> : </div>
        </td>
        <td>&nbsp;</td>
        <td>
            @Html.TextBoxFor(model => model.Purchase.SettlementDate, new { disabled = "disabled", @readonly = "readonly", @Value = string.Format("{0:dd/MM/yyyy}", Model.Purchase.SettlementDate) })

        </td>
    </tr>
    <tr>
        <td>
            <div align="right">Unit : </div>
        </td>
        <td>&nbsp;</td>
        <td>
            @Html.TextBoxFor(model => model.Purchase.Unit, new { disabled = "disabled", @class = "inputNumberField" ,@readonly = "readonly",@Value = ThaireInvestmentWeb.Util.WebUtil.FormatCurrency0(@Model.Purchase.Unit) })

        </td>
        <td>
            <div align="right">Total Size  : </div>
        </td>
        <td>&nbsp;</td>
        <td>
            @Html.TextBoxFor(model => model.Purchase.TotalSize, new { disabled = "disabled", @readonly = "readonly", @class = "inputNumberField"  ,@Value = ThaireInvestmentWeb.Util.WebUtil.FormatCurrency0(@Model.Purchase.TotalSize) })

        </td>
    </tr>
    <tr>
        <td>
            <div align="right">Par : </div>
        </td>
        <td>&nbsp;</td>
        <td>
            @Html.TextBoxFor(model => model.Purchase.Par, new { disabled = "disabled", @readonly = "readonly",@class = "inputNumberField"  ,@Value = ThaireInvestmentWeb.Util.WebUtil.FormatCurrency5(@Model.Purchase.Par)  })

        </td>
        <td>
            <div align="right">Par Value : </div>
        </td>
        <td>&nbsp;</td>
        <td>
            @Html.TextBoxFor(model => model.Purchase.ParValue, new { disabled = "disabled", @readonly = "readonly", @class = "inputNumberField"  ,@Value = ThaireInvestmentWeb.Util.WebUtil.FormatCurrency5(@Model.Purchase.ParValue) })
        </td>
    </tr>
    <tr>
        <td>
            <div align="right">Yield <span class="error">*</span>  : </div>
        </td>
        <td>&nbsp;</td>
        <td>
            @Html.TextBoxFor(model => model.Purchase.Yield, new { disabled = "disabled", @readonly = "readonly",@class = "inputNumberField" ,@Value = ThaireInvestmentWeb.Util.WebUtil.FormatCurrency5(@Model.Yield) })

            &nbsp; % </td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
    </tr>
    <tr>
        <td>
            <div align="right">Clean Price   : </div>
        </td>
        <td>&nbsp;</td>
        <td>
            @Html.TextBoxFor(model => model.Purchase.CleanPrice, new { disabled = "disabled", @readonly = "readonly",  @class = "inputNumberField"  ,@Value = ThaireInvestmentWeb.Util.WebUtil.FormatCurrency5(@Model.Purchase.CleanPrice)})

        </td>
        <td>
            <div align="right"></div>
        </td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
    </tr>
    <tr>
        <td>
            <div align="right">AI : </div>
        </td>
        <td>&nbsp;</td>
        <td>
            @Html.TextBoxFor(model => model.Purchase.AI, new { disabled = "disabled", @readonly = "readonly" ,@class = "inputNumberField"  ,@Value = ThaireInvestmentWeb.Util.WebUtil.FormatCurrency5(@Model.Purchase.AI)})

        </td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
    </tr>
    <tr>
        <td>
            <div align="right">Gross Price : </div>
        </td>
        <td>&nbsp;</td>
        <td>
            @Html.TextBoxFor(model => model.Purchase.GrossPrice, new { disabled = "disabled", @readonly = "readonly", @class = "inputNumberField"   ,@Value = ThaireInvestmentWeb.Util.WebUtil.FormatCurrency5(@Model.Purchase.GrossPrice)})
        </td>
        <td>
            <div align="right">
                <div align="right">Discount / Premium   : </div>
            </div>
        </td>
        <td>&nbsp;</td>
        <td>
            @Html.TextBoxFor(model => model.Purchase.DiscountPremium, new { disabled = "disabled",@readonly = "readonly",@class = "inputNumberField"  ,@Value = ThaireInvestmentWeb.Util.WebUtil.FormatCurrency5(@Model.Purchase.DiscountPremium)  })
        </td>
    </tr>
    <tr>
        <td>
            <div align="right">Physical    : </div>
        </td>
        <td>&nbsp;</td>
        <td>

            @Html.TextBoxFor(x => x.Purchase.Physical, new { disabled = "disabled", @readonly = "readonly" })
        </td>
        <td>
            <div align="right">Keep at : </div>
        </td>
        <td>&nbsp;</td>
        <td>

            @Html.TextBoxFor(x => x.Purchase.KeepAt, new { disabled = "disabled", @readonly = "readonly" })
        </td>
    </tr>
    <tr>
        <td>
            <div align="right">Counterparty  <span class="error">*</span> : </div>
        </td>
        <td>&nbsp;</td>
        <td>
            @Html.TextBoxFor(x => x.Purchase.CounterpartyName, new { disabled = "disabled", @readonly = "readonly" })
        </td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
    </tr>
    <tr>
        <td>
            <div align="right">Purchase Value (Local THB)   : </div>
        </td>
        <td>&nbsp;</td>
        <td>

            @Html.TextBoxFor(model => model.Purchase.PurchaseValueTh, new { disabled = "disabled", @readonly = "readonly" ,@class = "inputNumberField"  ,@Value = ThaireInvestmentWeb.Util.WebUtil.FormatCurrency2(@Model.Purchase.PurchaseValueTh) })

            &nbsp;</td>
        <td>
            <div align="right"></div>
        </td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
    </tr>
    <tr>
        <td>
            <div align="right">Currency   : </div>
        </td>
        <td>&nbsp;</td>
        <td>

            @Html.TextBoxFor(x => x.Purchase.Currency, new { disabled = "disabled", @readonly = "readonly" })
            &nbsp;</td>
        <td>
            <div align="right">Exch. Rate  : </div>
        </td>
        <td>&nbsp;</td>
        <td> @Html.TextBoxFor(x => x.Purchase.ExchRate, new { disabled = "disabled", @readonly = "readonly",@class = "inputNumberField" ,@Value = ThaireInvestmentWeb.Util.WebUtil.FormatCurrency2(@Model.Purchase.ExchRate)  })</td>
    </tr>
    <tr>
        <td>
            <div align="right">Purchase Value (Foreign)  : </div>
        </td>
        <td>&nbsp;</td>
        <td>
            @Html.TextBoxFor(model => model.Purchase.PurchaseValueForeign, new { disabled = "disabled", @readonly = "readonly" ,@class = "inputNumberField"  ,@Value = ThaireInvestmentWeb.Util.WebUtil.FormatCurrency2(@Model.Purchase.PurchaseValueForeign)})
        </td>
        <td>
            <div align="right"></div>
        </td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
    </tr>

    <tr>
        <td>
            <div align="right">Related / Non Related    : </div>
        </td>
        <td>&nbsp;</td>
        <td>

            @Html.TextBoxFor(x => x.Purchase.Related, new { disabled = "disabled", @readonly = "readonly" })

            &nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
    </tr>
    <tr>
        <td>
            <div align="right">Index Ratio    : </div>
        </td>
        <td>&nbsp;</td>
        <td>
            @Html.TextBoxFor(model => model.Purchase.IndexRatio, new { disabled = "disabled", @readonly = "readonly" })

            &nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
    </tr>
    <tr>
        <td>
            <div align="right">Remark (OIC) : </div>
        </td>
        <td>&nbsp;</td>
        <td>
            @Html.TextBoxFor(model => model.Purchase.RemarkOic, new { disabled = "disabled", @readonly = "readonly" })

        </td>
         <td>
            <div align="right">Remain Unit : </div>
        </td>
        <td>&nbsp;</td>
        <td>
            @Html.TextBoxFor(model => model.Purchase.RemainUnit, new { disabled = "disabled", @readonly = "readonly" ,@class = "inputNumberField",@Value = ThaireInvestmentWeb.Util.WebUtil.FormatCurrency0(@Model.Purchase.RemainUnit)})

        </td>
    </tr>
</table>
